import requests

from com.yh.likeshop.utils.utils import like_host


class Cart():

    def addCart(self,item_id,goods_num,token):
        #调用添加购物车接口
        cart = {"item_id":item_id, "goods_num":goods_num}
        resp = requests.post(like_host+"/api/cart/add",json=cart,headers=token)
        return resp

    def queryCart(self):
        #调用查询购物车接口
        pass

    def updateCart(self):
        #调用修改购物车接口
        pass
